import random


def get_max(lst):
    x = lst[0]
    for i in range(1, len(lst)):
        if lst[i] > x:
            x = lst[i]
    return x


# 列表的生成式
lst = [random.randint(1, 100) for item in range(10)]
print(lst)
print(get_max(lst))
